﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;
using FwProject.Core.Restaurant;

namespace FwProject.Restaurant
{
    /// <summary>
    /// 店存盘点
    /// </summary>
    public class StockCheckInfo: FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 工厂编号
        /// </summary>
        public Guid? FactoryinfoId { get; set; }
        /// <summary>
        /// 盘点单号
        /// </summary>
        public string CreationNumber { get; set; }
        /// <summary>
        /// 餐厅编号
        /// </summary>
        public Guid RestaurantId { get; set; }
        [ForeignKey("RestaurantId")]
        public virtual RestaurantInfo RestaurantInfoModel { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        public string Person { get; set; }
        /// <summary>
        /// 应存数量
        /// </summary>
        public int Count { get; set; } = 0;
        /// <summary>
        /// 盘点数量
        /// </summary>
        public int CheckCount { get; set; } = 0;
        /// <summary>
        /// 盈亏数量
        /// </summary>
        public int ProfitCount { get; set; } = 0;

        public StockCheckStatus StockCheckStatus { get; set; } = StockCheckStatus.未提交;
        /// <summary>
        /// 备注
        /// </summary>
        public string RemarkContent { get; set; }
    }

    public enum StockCheckStatus {

        未提交=0,
        未审核 = 1,
        已审核 = 2,
    }
}